package com.indusfo.spc.service.impl;

import com.indusfo.spc.exception.GlobalException;
import com.indusfo.spc.mapper.MenuMapper;
import com.indusfo.spc.pojo.Menu;
import com.indusfo.spc.pojo.User;
import com.indusfo.spc.service.MenuService;
import com.indusfo.spc.vo.JSONObject;
import com.indusfo.spc.vo.SimpleTreeNode;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.*;
import java.util.stream.Collectors;

/**
 * 菜单清单信息表业务层
 *
 * @author 贺闻博
 * 根据业务需要  ,此业务层只需要进行查询所有的菜单的清单, 其他的查询的接口待定
 * 2018年11月30日
 */
@Service
public class MenuServiceImpl implements MenuService {
  private static final Logger logger = LoggerFactory.getLogger(MenuServiceImpl.class);
  @Resource
  private MenuMapper menuMapper;

  @Override
  public List<Menu> selectMenuAll() {
    return menuMapper.selectMenuAll();
  }
}
